/*
	Namespace: translator.entries
	
	The root namespace of entries.
*/
translator.entries = {};
translator.entries._ENCODING = translator.encodings.shift;
translator.entries.encode = function(){
	var i = translator.create();
	var main = translator.ui.main.create();
	
	var text = i.getSelectedText();
	if (text == String.empty){
		return;
	}
	
	if (translator.encodings._ENCODING == null){
	    translator.encodings._ENCODING = translator.encodings.shift;
	}
	
	var encoded = i.translate(text, translator.encodings._ENCODING);
	i.setSelectedText(encoded);
};
translator.entries.decode = function(){
	var i = translator.create();
};